import { success } from '../../../common/utils/feedback'
import eventBus from '../../../common/utils/eventBus'
import { TEST_EVENT } from '../../../common/constant/eventNames'
Page({
  data: {},
  onLoad () {
    eventBus.on(TEST_EVENT, data => {
      success(`触发${data}`)
    })
  },
  handleEventBusTest () {
    eventBus.emit(TEST_EVENT, 'test event')
  }
})
